﻿<Window x:Class="NeosSDI.VsExtension.WindowCreateScaffoldController"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Scaffold Controller" Height="450" Width="700" Icon="/NeosSDI.VsExtension;component/Images/48.ico" ResizeMode="NoResize" WindowStartupLocation="CenterScreen">
    <Window.Background>
        <ImageBrush ImageSource="/NeosSDI.VsExtension;component/Images/backgroundpattern.png" Stretch="None" TileMode="Tile" Viewport="0,0,4.00055829527907,4.00055829527907" ViewportUnits="Absolute" />
    </Window.Background>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="*" />
            <RowDefinition Height="40" />
        </Grid.RowDefinitions>
        <Grid Background="White">
            <Grid Margin="10">
                <Grid.RowDefinitions>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Label Content="Controller name:" VerticalAlignment="Center"/>
                <TextBox Grid.Row="1" VerticalAlignment="Center" Text="DefaultController"  Name="textboxControllerName" TextChanged="textboxControllerName_TextChanged" />
                <ScrollViewer Grid.Row="2" VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Hidden">
                    <StackPanel>
                        <GroupBox Header="Scaffoldding options" Height="Auto" VerticalAlignment="Top" >
                            <Grid Margin="10">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="30"/>
                                    <RowDefinition Height="30"/>
                                    <RowDefinition Height="30"/>
                                    <RowDefinition Height="30"/>
                                </Grid.RowDefinitions>
                                <Grid.ColumnDefinitions>
                                    <ColumnDefinition Width="110" />
                                    <ColumnDefinition Width="*" />
                                </Grid.ColumnDefinitions>
                                <Label Grid.Row="0" Content="Template:" VerticalAlignment="Center"/>
                                <ComboBox Grid.Column="1" VerticalAlignment="Center" Name="comboTemplate" SelectionChanged="comboTemplate_SelectionChanged"></ComboBox>
                                <Label Grid.Row="1" Content="Model:" VerticalAlignment="Center"/>
                                <ComboBox Grid.Column="1" Grid.Row="1" VerticalAlignment="Center" Name="comboModel" SelectionChanged="comboModel_SelectionChanged"></ComboBox>
                                <CheckBox Grid.Row="2" Content="Generate Service" IsChecked="True" VerticalAlignment="Center" Name="checkboxGenerateService" Click="checkboxGenerateService_Click" />
                                <Grid Grid.Row="2" Grid.Column="1" Name="panelService">
                                    <Grid.ColumnDefinitions>
                                        <ColumnDefinition Width="40" />
                                        <ColumnDefinition Width="90" />
                                        <ColumnDefinition Width="*" />
                                    </Grid.ColumnDefinitions>
                                    <Label Grid.Column="1" VerticalAlignment="Center" Content="ServiceName:"></Label>
                                    <TextBox Grid.Column="2" VerticalAlignment="Center" Name="textboxServiceName" TextChanged="textboxServiceName_TextChanged" Text="DefaultService" />
                                </Grid> 
                                <CheckBox Grid.Row="3"  Content="Generate Views" IsChecked="True" VerticalAlignment="Center" Name="checkboxGenerateViews" Click="checkboxGenerateViews_Click" />
                            </Grid>
                        </GroupBox>
                        <GroupBox Header="Scaffoldding command" Height="Auto" VerticalAlignment="Top" >
                            <TextBox Margin="10" Height="60" Name="textboxScaffoldingCommand" TextWrapping="Wrap" Width="626" AcceptsReturn="True" />
                        </GroupBox>
                    </StackPanel>
                </ScrollViewer>
            </Grid>
        </Grid>
    <StackPanel Grid.Row="1" HorizontalAlignment="Right" Margin="0, 0, 10, 0" Orientation="Horizontal" Name="StackOkCancel">
            <Button Content="OK" Height="23" Name="buttonOK" Width="75" Margin="0, 0, 10, 0" Click="buttonOK_Click" />
            <Button Content="Cancel" Height="23" Name="buttonCancel" Width="75" Click="buttonCancel_Click" />
        </StackPanel>
    </Grid>
</Window>
